/**!
 * 创新创业
 * author: wangkai;
 */

(function(win, $) {

    var $iconNode = $('.ewb-icon-node');
    $iconNode.hover(function() {
        $(this).find('.ewb-popup').stop().fadeIn('fast');
    }, function() {
        $(this).find('.ewb-popup').stop().fadeOut('fast');
    });

}(this, jQuery));

var userguid = $.cookie('the_userid');
function checklogin1(){
	if(userguid){
		window.location.href='/xzcftj/forRent.html?type=0';
	}else{
		login();
	}
}

function checklogin2(){
	if(userguid){
		window.location.href='/xzcftj/forRent.html?type=1';
	}else{
		login();
	}
}

function checklogin3(){
	if(userguid){
		window.location.href='/xzcftj/RentList.html?type=0';
	}else{
		login();
	}
}

function checklogin4(){
	if(userguid){
		window.location.href='/xzcftj/RentList.html?type=1';
	}else{
		login();
	}
}

function checklogin5(){
	if(userguid){
		window.location.href='/usercxcy.html';
	}else{
		login();
	}
}

function checklogincxq(){
	if(userguid){
		$.ajax({
			url: Util.AjaxRUrl + 'userInfo',
			type: "post",
			dataType: "json",
			async: false, //用户类型需先确定

			data: {
				param: '{userGuid:"' + userguid + '"}'
			},
			success: function(data) {
				//console.log(data);
				if(data.userInfo.registType=="企业注册"){
					window.location.href='/usercxqlq.html';
				}else{
					window.location.href='/usercxqfwrz.html';
				} 
			}
		});
	}else{
		login();
	}
	
}
